package structual_pattern.adapter_pattern;

public class AdapterPattern {
    public static void main(String[] args) {

    }
}

abstract class Target{
    public abstract void request();
}

class Adapter extends Target{
    private Adaptee adaptee;
    public Adapter(Adaptee adaptee) {
        this.adaptee = adaptee;
    }

    public Adapter() {

    }

    public Adaptee getAdaptee() {

        return adaptee;
    }

    public void setAdaptee(Adaptee adaptee) {
        this.adaptee = adaptee;
    }



    @Override
    public void request() {
        adaptee.specificRequest();
    }

}
class Adaptee{

    public void specificRequest() {
        //do something..
    }
}